package com.common.constants;

/**
 * 
* 项目名称：dwwl Maven Webapp   
* 类名称：GlobalConstants   
* 类描述：全局配置类  
* 创建人：KelvinNg  
* 创建时间： 2017年2月13日 
* 修改人：KelvinNg   
* 修改时间： 2017年2月13日   
* 修改备注：   
* @version 1.0
*
*/
public class GlobalConstants {
	
	/**
	 * 显示/隐藏
	 */
	public static final String SHOW = "1";
	public static final String HIDE = "0";
	
	/**
	 * 是/否
	 */
	public static final String YES = "0";
	public static final String NO = "1";
	
	/**
	 * 菜单状态
	 */
	public static final int MENU_STATUS_ENABLE = 1;
	
	
	/**
	 * 一级菜单/二级菜单
	 */
	public static final int  MENU_TYPE_LEVEL1 = 1;
	public static final int  MENU_TYPE_LEVEL2 = 2;

	public static final int  LOGIN_CODE_ERROR = 1;
	public static final int  LOGIN_USER_NOT_FOUND = 2;
	public static final int  LOGIN_ACCOUNT_LOCKED = 3;
	public static final int  LOGIN_PASSWORD_ERROR = 4;
	public static final int  LOGIN_OTHER_ERROR = 5;


	/**
	 * 总数/数据行
	 */
	public static final String DATATABLE_TOTAL = "total";
	public static final String DATATABLE_ROWS = "rows";
	
	/**
	 * 普通案件
	 */
	public static final int CASE_TYPE_NORMAL		= 1;
	/**
	 * 无名氏案件
	 */
	public static final int CASE_TYPE_EMPTY 		= 2;
	/**
	 * 一案多人案件
	 */
	public static final int CASE_TYPE_OTM 			= 3;
	/**
	 * 录音上传路径
	 */
	public static final String AUDIO_RELA_PATH 	= "AUDIO_RELA_PATH";
	/**
	 * 录音上传路径
	 */
	public static final String AUDIO_ABSO_PATH 	= "AUDIO_ABSO_PATH";
	/**
	 * 浏览器下载路径
	 */
	public static final String BROWSE_DOWNLOAD_PATH 	= "BROWSE_DOWNLOAD_PATH";
	/**
	 * 文书保存临时路径
	 */
	public static final String DOCUMENT_PATH 	= "DOCUMENT_PATH";
	/**
	 * 文书打印url前缀
	 */
	public static final String DOCUMENT_URL 	= "DOCUMENT_URL";
	/**
	 * 录音上传路径
	 */
	public static final String CASE_FILES 	= "CASE_FILES";
	
	/**
	 * 照片
	 */
	public static final int FILE_TYPE_PIC = 1;
	/**
	 * 视频
	 */
	public static final int FILE_TYPE_VIDEO = 2;
	/**
	 * 音频
	 */
	public static final int FILE_TYPE_AUDIO = 3;
	/**
	 * 文档
	 */
	public static final int FILE_TYPE_DOC = 4;
	/**
	 * 视频
	 */
	public static final int FILE_TYPE_VIDEO_ORG = 5;
	/**
	 * 其他
	 */
	public static final int FILE_TYPE_OTHERS = 99;
	
	/**
	 * 其他
	 */
	public static final int CASE_STATUS_COMPLETE = 2;
	
	/**
	 * 创建
	 */
	public static final int CREATE = 0;
	/**
	 * 更新
	 */
	public static final int UPDATE = 1;
	/**
	 * 视频状态
	 */
	public static final int VIDEO_STAUS_RECORDING = 0;
	public static final int VIDEO_STAUS_PENDING_TRANSCODING = 1;
	public static final int VIDEO_STAUS_TRANSCODING = 2;
	public static final int VIDEO_STAUS_RETRY = 3;
	public static final int VIDEO_STAUS_FINISH = 4;
	public static final int VIDEO_STAUS_TRANSCODERROR = 5;
	public static final int VIDEO_STAUS_ERROR = 6;
	
	/**
	 * 档案状态及初始时间
	 */
	public static final int CASEPROGRESS = 0;
	public static final int CASEHANDLING = 1;
	public static final int CASEHANDLEHOURS = 8;
	/**
	 * 案件完成状态
	 */
	public static final int CASEUNFINISH = 0;
	public static final int CASEFINISH = 1;
	/**
	 * 设备类型
	 */
	public static final int DEVICEV= 1;//摄像头
	public static final int DEVICEA = 2;//麦克风
	/**
	 * 审讯状态
	 */
	public static final int CASEINQUIRY = 0;
	public static final int CASEINQUIRYFINISH1 = 1;
	public static final int CASEINQUIRYFINISH2 = 2;
	
	/**
	 * 案件状态
	 */
	public static final int CASESTATUSING = 0;//进行中
	public static final int CASESTATUSWAITING = 1;//待审批
	public static final int CASESTATUSSUCCESS = 2;//审批通过
	public static final int CASESTATUSFAIL = 3;//审批驳回
	public static final int CASESTATUSOK = 99;//完成
	public static final int CASETAKEOFF = 4;//带离
	public static final int CASETEMPORARYTAKEOFF = 5;//临时带离
	public static final int CASETEMPORARYTAKEBACK = 6;//已带回
	
	/**
	 * 申请类型
	 */
	public static final int APPLICATIONTYPELEAVE = 0;//带离申请
	public static final int APPLICATIONTYPEDELAYED = 1;//延时申请
	public static final int APPLICATIONTYPETEMPORARYLEAVE = 2;//临时带离申请
	
	/**
	 * 储物柜的状态
	 */
	public static final int LOCKERFREE = 1;  //空闲
	public static final int LOCKERUSING = 2; //使用中 
	
	
}
